import { post } from './http.js'

//注册
const register = p => post('/register', p)

//登录
const login = p => post('/login', p)

//查询用户列表
const queryUserList = p => post('/users/userlist', p)

//删除用户
const deleteUser = p => post('/users/deleteuser', p)

//增加用户
const addUser = p => post('/users/adduser', p)

//修改用户
const updateUser = p => post('/users/updateuser', p)


export default {
  register,
  login,
  queryUserList,
  deleteUser,
  addUser,
  updateUser
}
